package shapes;
import processing.core.*;
import util.*;
public class Cross implements Shape{
	private float size;
	private Color color;
	private float weight;
	private float scale;
	
	public Cross(float size, float weight, Color color) {
		this.size = size;
		this.color = color;
	}

	public Color getColor() {
		return color;
	}

	public float getSize() {
		return size;
	}

	public void setColor(Color color) {
		this.color = color;
	}

	public void setSize(float size) {
		this.size = size;
	}
	
	public float getWeight() {
		return weight;
	}

	public void setWeight(float weight) {
		this.weight = weight;
	}

	public void draw(PApplet pa){
		pa.noFill();
		//pa.strokeWeight(weight);
		color.stroke(pa);
		float s = size;
		pa.line(-s, 0, 0, s, 0, 0);
		pa.line(0, -s, 0, 0, s, 0);
		pa.line(0, 0, -s, 0, 0, s);
	}

	public void scale(float s) {
		scale = s;
	}
	
	public static void draw(PApplet pa, float size, Color c){
		c.stroke(pa);
		float s = size;
		pa.line(-s, 0, 0, s, 0, 0);
		pa.line(0, -s, 0, 0, s, 0);
		pa.line(0, 0, -s, 0, 0, s);
	}
	
	public static void draw(PApplet pa, float s){
		pa.line(-s, 0, 0, s, 0, 0);
		pa.line(0, -s, 0, 0, s, 0);
		pa.line(0, 0, -s, 0, 0, s);
	}



}
